package com.analyse.stock.mapper;

import com.analyse.stock.form.PickStockQueryForm;
import com.analyse.stock.model.StockInfoModel;
import com.analyse.stock.vo.PickStockVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface StockInfoMapper extends BaseMapper<StockInfoModel> {
    StockInfoModel getStockInfoByCode(@Param("stockCode") String stockCode);

    void updateStockByCode(@Param("model") StockInfoModel model);

    List<PickStockVO> pickStock(@Param("queryForm") PickStockQueryForm queryForm);

    void scanStockByBoardFund(@Param("lastDay")Integer lastDay);

    List<StockInfoModel> getScanStockByDaily(@Param("occDate")String occDate);
}
